package org.example.backend.service;

import org.example.backend.dto.AnimalDTO;
import org.example.backend.entity.Animal;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface AnimalService {
    Animal createAnimal(AnimalDTO animalDTO);
    Animal updateAnimal(Long id, AnimalDTO animalDTO);
    void deleteAnimal(Long id);
    Animal getAnimal(Long id);
    Page<Animal> getAnimals(String name, Long categoryId, Pageable pageable);
    List<Animal> getNearbyAnimals(Double latitude, Double longitude, Double distance);
} 